#include "pushbtncontroller.h"

PushBtnController::PushBtnController()
{
    pushBtnView = new PushBtnView();


    connect(pushBtnView->pushButton[7],SIGNAL(clicked()),this,SLOT(didClickMenuBtnFun()));
    connect(pushBtnView->pushButton[8],SIGNAL(clicked()),this,SLOT(didClickSettingBtnFun()));
}

//添加页面
void PushBtnController::show(QHBoxLayout *hLayout,int stretch)
{
    hLayout->addWidget(pushBtnView,stretch);
}
//点击菜单按钮
void PushBtnController::didClickMenuBtnFun()
{
    emit showMenuView();
}
//点击设置
void PushBtnController::didClickSettingBtnFun()
{
      emit showSettingView();
}
PushBtnController::~PushBtnController()
{

}
